import request from '@/utils/request'

export const getArticleList = params => request.get('/admin/interview/query', { params })

// 面经创建
export const addArticle = data => request.post('/admin/interview/create', data)

// 删除
export const delArticle = id => request.delete('/admin/interview/remove', {
  data: { id } // 请求体参数
  // params:{},查询参数
})

// 获取单个数据
export const getArticle = id => request.get('/admin/interview/show', {
  params: { id }
})

// 修改数据
export const updateArticle = data => request.put('/admin/interview/update', data)
